<?php

class Application_Model_DbTable_ZhuanTiList extends Zend_Db_Table_Abstract
{

    protected $_name = 'txy_zhuanti_list';
	
    public function addList($data){
    	$this->insert($data);
    }
    
    public function getDetailContentsId($zhuanTiId){
    	$res=$this->fetchAll('zhuanti_id='.$zhuanTiId);
    	if($res){
    		$data=array();
    		foreach ($res as $re){
    			$data[]=$re['list_id'];
    		}
    		$strIdList=implode(',', $data);
    		return $strIdList;
    	}
    	return "";
    }

}

